extends "../xinnong-3/xinnong-3.gd"


var baseId = ""
var upText1 = "幽蝶之梦触发几率+5%"
var upText2 = "星夜之云伤害提高50%"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每{cd}秒引导我方所有舰载机，使其各自对其当前目标造成[(信浓航空+舰载机双攻)*0.6]的技能伤害", "星夜之云", "starCloud", 10)

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "starCloud":
		starCloud()

func starCloud():
	utils.createSkillTextEff("星夜之云", position)
	var chas = getAllChas(2)
	for i in chas:
		if i.isSumm and i.aiCha != null:
			var d:Eff = i.newEff("sk_feiDang",i.sprcPos)
			d._initFlyCha(i.aiCha)
			i.yieldOnReach(d)
			azurHurtChara(i.aiCha, (att.air+i.att.atk+i.att.mgiAtk)*0.6, sys.HurtType.WEAPON, sys.AtkType.SKILL, "星夜之云", false, p4)
var p4 = 1
func upgrade():
	.upgrade()
	if upgraded == 2:
		p4 = 1.5